DBEnd
DBEnd Terminate a session with a data server
#include <DatabaseAccess.h> Data Access Manager
OSErr DBEnd( sessID, asyncPB);
long sessID ; specifies a session ID
DBAsyncParmBlkPtr asyncPB; is a pointer to the asynchronous parameter
block.
returns Error Code; 0=no error
The DBEnd function terminates a session with a data server and terminates
the network connection between the application and the host computer. You
must call the DBEnd function to terminate a session.
sessID is the session ID that was returned by the DBInit function.
asyncPB is a pointer to the asynchronous parameter block. If you do not want
to call the function asynchronously, set this parameter to NIL.
Returns: an operating system Error Code.
noErr (0) No error
rcDBError (-802) Error ending session
rcDBBadSessID (-806) Session ID is invalid
rcDBAsyncNotSupp (-809) The database extension does not support asynchronous
calls
rcDBPackNotInited (-813) The InitDBPack function has not yet been called